<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title><?=$caidan_info['title'];?>_菜单_<?=$this->config->item('site_name');?></title>
	<meta name="keywords" content="<?=$caidan_info['title'];?>,菜单" />
	<meta name="description" content="<?=$caidan_info['title'];?>系列菜谱的做法" />
	<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/recipe.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/colorbox.css')?>" rel="stylesheet" type="text/css" media="screen">
	<script src="<?=path_res('static/js/jquery.js')?>"></script>
	<script src="<?=path_res('static/js/functions.js')?>"></script>
</head>
<body>

<? $this->load->view('header'); ?>
<div id="main" class="clearfix">
	<div class="nav_line">
		<li><a href="<?=base_url()?>">首页</a></li>
		<li>&gt;</li>
		<li><a href="<?=site_url('caidan')?>">美食菜单</a></li>
		<li>&gt;</li>
		<li><?=$caidan_info['title']?></li>
	</div>
		<div class="meview clearfix mb20">
			<?php if($caidan_info['image']):?>
			<div class="mexiew mb15">				
				<div class="mexiew" style="background-image: url(<?=$caidan_info['image']?>);"></div>
				<img src="<?=$caidan_info['image']?>" alt="<?=$caidan_info['title']?>" itemprop="image">	
			</div>
			<?php endif?>
		    <div class="melef clearfix">
				<h1 id="page_cm_id" ctype="caidan" val="<?=$caidan_info['id']?>" class="mbs"><?=$caidan_info['title']?></h1>
				<span>创建时间：<?=$caidan_info['addtime']?></span><span class="mlm">最后更新：<?=$caidan_info['uptime']?></span><span class="mlm">浏览：<?=$caidan_info['views']?></span>
			</div>
			<div class="meright clearfix">
                <span onclick="caidanFavorites(this,<?=$caidan_info['id']?>)" class="<?php if($if_caidan_fav ==0){echo 'btncdsc';}else{echo 'btncdqxsc';}?> mr7"><a href="javascript:void(0)"><?php if($if_caidan_fav ==0){echo '添加收藏';}else{echo '取消收藏';}?></a></span>
                    	
				<span class="btncdfx relative share">
					<!-- Baidu Button BEGIN -->
					<div id="bdshare" class="bdshare_b" style="line-height: 12px;">
					<img src="http://bdimg.share.baidu.com/static/images/type-button-1.jpg?cdnversion=20120831" />
					</div>
					<script type="text/javascript" id="bdshare_js" data="type=button&amp;uid=224457" ></script>
					<script type="text/javascript" id="bdshell_js"></script>
					<script type="text/javascript">
					document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
					</script>
					<!-- Baidu Button END -->
				</span>
			</div>
			<div class="mjie mtm clearfix litto mb20">
				<p><?=$caidan_info['desc']?></p>
			</div>			
		</div>
		<div class="mecai">
			<div class="left">
				    <?php $index = 0;?>
				    <?php foreach( $caipu_list as $caipu):?>
				    <?php $index++;?>
			        <div class="keone" <?php if ($index%3!=0){echo 'style="margin-right:20px"';}?> >
						<a href="<?=site_url("recipe/".$caipu['id'])?>" target="_blank"><img src="<?=$caipu['coverImage']?>" alt="<?=$caipu['title']?>"></a>
						<div class="imh3"><a href="<?=site_url("recipe/".$caipu['id'])?>" target="_blank"><?=$caipu['title']?></a></div>
					</div>
					<?php endforeach?>
			</div>	 
		              
		</div>
		<div class="meketor">
			<div class="miter clearfix mb25">
				<div class="mihd">
				<img src="<?=$caipu_user_avartar?>" alt="<?=$user_info->username?>">
				<p>
					<a href="<?=site_url('u/'.$caidan_info['uid'])?>" target="_blank"><?=$user_info->username?></a>
					<a id="guanzhu<?=$user_info->id?>" class="<?php if ($if_guanzhu == 1 ) {echo 'careyed2';}else{echo 'careadd2';}?> guanzhu" userid="<?=$user_info->id?>" href="javascript:void(0)"><?php if ($if_guanzhu == 1 ) {echo '已关注';}else{echo '关注';}?></a>
				</p>

				</div>
				<div class="copyright">该菜单创建于<?=$caidan_info['addtime']?><br>-。</div>
			</div>




</div>	
</div>
<div class="page_PN">
			<div class="pager">
				<?= $this->pagination->create_links();?>
			</div>
		</div>	
<script src="<?=path_res('static/js/likeandshare.js')?>"></script>
<script src="<?=path_res('static/js/caidan.js')?>"></script>
<? $this->load->view('footer'); ?>